package com.centaline.exception.enums;

import com.centaline.exception.core.LocalError;

/**
 * Created by caoyuan7 on 2017/9/5.
 */
public enum CustomerErrorConstants implements LocalError {

    //案件
    CASE_PKID_IS_NULL("10001","案件的PKID为空"),

    OTHER_ERROR("999999","其他错误");

    private String code;

    private String message;

    private CustomerErrorConstants(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public String toString() {
        return "[" + code + "] " + message;
    }
}
